<<<<<<< HEAD:first homework/f22011219-郭欣/MyClass.java
package com.example.Lib;
=======
package com.example.f22011226;
>>>>>>> 9847e549d509add37aeccd03e626d0f7a5d9ad62:first homework/f22011226_卢鸣宇/MyClass.java

public class MyClass{
    public  static void main(String[] args){
        Duck duck =new ReadHeadDuck();
        duck.display();
        duck.performFly();
        duck.performQuack();


        duck.setFlyBehavior(new FlyNoWay());
        duck.performFly();
    }
}